package com.guigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 设备类型表实体类（支持多级分类）
 */
@Data
@TableName("equipment_type")
public class EquipmentType {
    @TableId(type = IdType.AUTO)
    private Long typeId;

    @TableField("type_name")
    private String typeName;

    @TableField("parent_id")
    private Long parentId;

    @TableField("type_code")
    private String typeCode;

    @TableField("type_desc")
    private String typeDesc;

    @TableField("sort")
    private Integer sort;

    @TableField("status")
    private int status;

    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<EquipmentType> children;
}
